/**
 * Created by Administrator on 2017/2/26.
 */
var bool=true;
$(function(){
  $(window).scroll(function(){

      if(document.body.scrollTop>100 && bool){
        $("#tan_top").css({display:"block"})
        $(".search_top>span").click(function(){
          bool=false;
          $("#tan_top").css({display:"none"})

        });
      }else{
        $("#tan_top").css({display:"none"})
      }
    }
  );



  if(sessionStorage['uname']){
    $("#hello").html(sessionStorage['uname']+" 您好，欢迎光临优个网！");
  }
});